package com.sunma.assets.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sunma.common.annotation.Excel;
import com.sunma.common.core.domain.BaseEntity;

/**
 * 资产详细信息对象 assets
 * 
 * @author sunma
 * @date 2024-07-05
 */
public class Assets extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资产ID */
    private Long id;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String name;

    /** 资产分类 */
    @Excel(name = "资产分类ID")
    private Long categoryId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String no;

    /** 资产图片 */
    @Excel(name = "资产图片")
    private String img;

    /** 资产型号 */
    @Excel(name = "资产型号")
    private String model;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 购置日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购置日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 初始价值 */
    @Excel(name = "初始价值")
    private BigDecimal money;

    /** 折旧方法说明 */
    @Excel(name = "折旧方法说明")
    private String depreciate;

    /** 使用部门 */
    @Excel(name = "使用部门ID")
    private Long deptId;

    /** 责任人 */
    @Excel(name = "责任人ID")
    private Long userId;

    /** 存放地点 */
    @Excel(name = "存放地点")
    private String location;

    /** 资产状态('在用', '闲置', '维修', '报废') */
    @Excel(name = "资产状态")
    private Long status;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 使用部门 */
    @Excel(name = "使用部门")
    private String deptName;

    /** 责任人 */
    @Excel(name = "责任人")
    private String userName;

    /** 资产分类 */
    @Excel(name = "资产分类")
    private String categoryName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setDepreciate(String depreciate) 
    {
        this.depreciate = depreciate;
    }

    public String getDepreciate() 
    {
        return depreciate;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("no", getNo())
            .append("img", getImg())
            .append("model", getModel())
            .append("num", getNum())
            .append("date", getDate())
            .append("money", getMoney())
            .append("depreciate", getDepreciate())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("location", getLocation())
            .append("status", getStatus())
            .append("comment", getComment())
            .append("deptName", getDeptName())
            .append("userName", getUserName())
            .append("categoryName", getCategoryName())
            .toString();
    }
}
